package com.mazaiting.testdemo

import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.mazaiting.testdemo.design.DesignActivity
import com.mazaiting.testdemo.job.JobActivity

class MainActivity : AppCompatActivity() {
  
  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)
  }
  
  /**
   * 开启JobActivity
   */
  fun onJobService(view: View) {
    startActivity(Intent(this, JobActivity::class.java))
  }
  
  /**
   * 开启DesignActivity
   */
  fun onDesign(view: View) {
    startActivity(Intent(this, DesignActivity::class.java))
  }
}
